/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package datos;

import acceso_datos.EntidadEmergenciaDB;
import java.sql.SQLException;

/**
 *
 * @author miguesaca
 */
public class Police extends AlarmaObervador {

    public Police(Emergencie emergencie) {
        super(emergencie);
    }

    @Override
    public void update() {
        System.out.println("Participan " +this.getClass().getSimpleName()+"  es " + emergencie.getZona() );
        
        EntidadEmergenciaDB b=new EntidadEmergenciaDB();
        try {
            b.grabar(emergencie.getId(), 0);
        } catch (SQLException ex) {
            
        }
        
    }
}
